<template>
  <basic-container>
    <avue-crud :option="option" :data="data" @row-save="rowSave">
<!-- <template slot="crudsForm" slot-scope="scope">
      <avue-crud :option="scope.column.option" :data="scope.row.cruds" @row-save="rowSave(arguments,scope.row.cruds)"></avue-crud>
    </template> -->
  </avue-crud>
  </basic-container>
  
</template>
<script>
export default {
  name:'mcrud',
  props:["option", "data"],
  data(){
    return{
    }
  },
  mounted () {
      var _this = this
      _this.$nextTick(()=>{
          console.log(_this.data)
      })  
  },
  methods:{
    rowSave(form,done,loading){
      console.log(this.data)
      done(form)
    }
  }
}
</script>